import { $get } from '@js/authRequest'

export async function getTaskRequest (caseid) {
  const res = await $get('/api/xapc/task', {
    caseid,
    type: '结案文书'
  })
  if (res.status !== 1) {
    throw new Error(res.message)
  }
  return res.data.task
}
